package com.smart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smart.entity.Article;
import com.smart.entity.ArticleDetails;
import com.smart.entity.Article_List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository//代表持久层
public interface ArticleMapper extends BaseMapper<Article> {
//    文章列表
    IPage<Article_List> articlelist(Page page);
    List<ArticleDetails> articleDetails(Integer id);
    IPage<ArticleDetails> articleIndexList(Page page);
    IPage<ArticleDetails> articleListClass(Page page,Integer classId);
}
